package com.molichuxing.services.infrastructure.dao;

import com.molichuxing.framework.dao.RootMapper;
import com.molichuxing.services.infrastructure.bean.AccidentBean;
import com.molichuxing.services.infrastructure.bean.AccidentDriveBean;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 事故驾驶人表 Mapper 接口
 * </p>
 *
 * @author xuelin yi
 * @since 2019-09-04
 */
public interface AccidentDriveMapper extends RootMapper<AccidentDriveBean> {

    /**
     * 根据事故id获取事故驾驶人
     * @param accidentId
     * @return
     */
    @Override
    AccidentDriveBean getById(@Param("accidentId") Integer accidentId);

    /**
     * 创建事故驾驶人信息
     * @param accidentDriveBean
     * @return
     */
    int createAccidentDrive(AccidentDriveBean accidentDriveBean);

    /**
     * 更新驾驶人信息
     * @param accidentDriveBean
     * @return
     */
    int updateAccidentDriveById(AccidentDriveBean accidentDriveBean);
}
